# -*- coding: utf-8 -*-
# standard
import os
import sys

# third
from datetime import timezone
from datetime import timedelta
from datetime import datetime

# local
_P_PATH =  os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
if _P_PATH not in sys.path:
    sys.path.append(_P_PATH)
from functions import *


"""
@Title:   
@File: 测试复现推送任务.py
@Author: walle 2025年02日26日 13时27分49秒
@Version: 1.0.0
@Desc: 
"""


def send_alert_by_history():
    """
    直接调用发送历史记录重复发送
    """
    db_session = new_db_session(sync=True)
    one = db_session.get(OutPushTaskOrm, 121129)
    kw = one.get_kw()
    send_notification(kw)
    time.sleep(5)
    send_notification(kw)
    # send_notification(kw)
    db_session.close()


def send_alert():
    """
    直接调用发送历史记录重复发送
    """
    ...
    

if __name__ == '__main__':
    send_alert_by_history()
    pass